%h1 
	Using exclude
%p
	gets all entries except those matching the conditions in the brackets. Here it matches all blogPosts with titles different from untitled and content different from "no content entered" 

	def exclude 
	@blog_posts = BlogPost.excludes(title: "untitled", content: "no content entered")
	end

- @blog_posts.each do |blog_post|
	%p
		%b= link_to blog_post.title, blog_post 
	%p created at
	%p= blog_post.time
	%p= blog_post.content


	%p{style: "float: right;"}
		= link_to "Delete", blog_post, method: :delete, confirm: "Are you sure you want to delete this post?"

		= link_to "modify", blog_post, method: :put
	%hr{style: "clear: both;"}

	%br 
= link_to 'Back', querying_path
